package com.jx.driving.domain;

import com.jx.driving.protocol.terminal.annotation.BcdAnnotation;
import com.jx.driving.protocol.terminal.annotation.DwordAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;
import com.jx.driving.protocol.terminal.annotation.WordAnnotation;

/**
 * 
 * @author shenliuyang
 *
 *         2016年8月14日下午4:55:53
 */
@TerminalAnnotation
public class GnssPackage {
    @DwordAnnotation(order = 1)
    private long alert;// 报警标识
    @DwordAnnotation(order = 2)
    private long status;// 状态
    @DwordAnnotation(order = 3)
    private long lat;// 纬度
    @DwordAnnotation(order = 4)
    private long lng;// 经度
    @WordAnnotation(order = 5)
    private int speed;// 行驶速度
    @WordAnnotation(order = 6)
    private int locationSpeed;// 定位速度
    @WordAnnotation(order = 7)
    private int direction;// 方向
    @BcdAnnotation(value = 6, order = 8)
    private String time;// 时间

    public long getAlert() {
	return alert;
    }

    public void setAlert(long alert) {
	this.alert = alert;
    }

    public long getStatus() {
	return status;
    }

    public void setStatus(long status) {
	this.status = status;
    }

    public long getLat() {
	return lat;
    }

    public void setLat(long lat) {
	this.lat = lat;
    }

    public long getLng() {
	return lng;
    }

    public void setLng(long lng) {
	this.lng = lng;
    }

    public int getSpeed() {
	return speed;
    }

    public void setSpeed(int speed) {
	this.speed = speed;
    }

    public int getLocationSpeed() {
	return locationSpeed;
    }

    public void setLocationSpeed(int locationSpeed) {
	this.locationSpeed = locationSpeed;
    }

    public int getDirection() {
	return direction;
    }

    public void setDirection(int direction) {
	this.direction = direction;
    }

    public String getTime() {
	return time;
    }

    public void setTime(String time) {
	this.time = time;
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("GnssPackage [alert=").append(alert).append(", status=").append(status).append(", lat=")
		.append(lat).append(", lng=").append(lng).append(", speed=").append(speed).append(", locationSpeed=")
		.append(locationSpeed).append(", direction=").append(direction).append(", time=").append(time)
		.append("]");
	return builder.toString();
    }

}
